﻿using System;
using System.Web.UI.HtmlControls;

namespace Z16.SITE
{
    public partial class Index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if ((Session["CodPerfil"] == null) || (Session["CodUsr"] == null))
                {
                    Response.Write("<script>window.location=\'Login.aspx';</script>");
                    return;
                }

                HtmlContainerControl controle = (HtmlContainerControl)this.Master.FindControl("voltar");
                controle.Visible = false;
            }
        }
    }
}